from django.contrib import admin
from django.urls import path
from . import views
from django.contrib import admin
from django.urls import path, include  # 添加了 include 的导入
from . import views
urlpatterns = [
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('register/', views.register, name='register'),
    path('student/', views.student_dashboard, name='student_dashboard'),
    path('student/my-topics/', views.student_topics, name='student_topics'),
    path('student/submit-question/', views.submit_question, name='submit_question'),
    path('student/submit-progress/<int:topic_id>/', views.submit_progress, name='submit_progress'),
    path('teacher/evaluate-progress/<int:progress_id>/', views.evaluate_progress, name='evaluate_progress'),
    path('student/delete-progress/<int:progress_id>/', views.delete_progress, name='delete_progress'),
    path('teacher/delete-evaluation/<int:progress_id>/', views.delete_evaluation, name='delete_evaluation'),
    path('student/edit-progress/<int:progress_id>/', views.edit_progress, name='edit_progress'),
    path('teacher/adjust-evaluation/<int:progress_id>/', views.adjust_evaluation, name='adjust_evaluation'),
    path('student/view-progress/<int:topic_id>/', views.view_progress, name='view_progress'),
    path('teacher/progress-statistics/', views.progress_statistics, name='progress_statistics'),
    path('student/topics/', views.list_topics, name='list_topics'),
    path('student/apply-topic/<int:topic_id>/', views.apply_topic, name='apply_topic'),
    path('teacher/', views.teacher_dashboard, name='teacher_dashboard'),
    path('teacher/progress/', views.evaluate_progress_list, name='evaluate_progress_list'),
    path('teacher/topics/review/', views.topic_review, name='topic_review'),
    path('teacher/students/', views.my_students, name='my_students'),
    path('notifications/', include('notifications.urls')),


]

handler404 = 'bases.views.page_not_found'
